package cn.stylefeng.guns.modular.business.frequency.transportlevel.entity;

import cn.stylefeng.guns.core.pojo.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;

import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 运单运输车辆详情
 *
 * @author yujie
 * @date 2023/05/09 17:15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tt_transport_level")
public class TransportLevel extends BaseEntity {

    /**
     * id
     */
    @TableId("id")
    private Long id;

    /**
     * transport_id
     */
    @TableField("transport_id")
    private Long transportId;

    /**
     * 1.直交 2.网点中转
     */
    @TableField("type")
    private Integer type;

    /**
     * 1.有网点 0.无网点
     */
    @TableField("has_site")
    private Integer hasSite;

    /**
     * 网点
     */
    @TableField("site_id")
    private Long siteId;

    /**
     * 代收运费
     */
    @TableField("collection_fee")
    private BigDecimal collectionFee;

    /**
     * 应付司机费用
     */
    @TableField("driver_fee")
    private BigDecimal driverFee;

    /**
     * 接车人
     */
    @TableField("receive_user")
    private String receiveUser;

    /**
     * 接车人电话
     */
    @TableField("receive_phone")
    private String receivePhone;

    /**
     * 接车地址
     */
    @TableField("receive_address")
    private String receiveAddress;

    /**
     * 运单出发地
     */
    @TableField("start_code")
    private String startCode;

    /**
     * 运单到达地
     */
    @TableField("destination_code")
    private String destinationCode;

    /**
     * 结算方式 1.公司付款 2.网点垫付
     */
    @TableField("settlement_type")
    private Integer settlementType;


    //结算人手机号
    @TableField("settlement_phone")
    private String settlementPhone;


    //结算人姓名
    @TableField("settlement_name")
    private String settlementName;


    //结算人id
    @TableField("settlement_id")
    private Long settlementId;



    /**
     * 是否预留板位分段 1.是 2.否
     */
    @TableField("reserved")
    private Integer reserved;

    /**
     * 运输单路径
     */
    @TableField("file_url")
    private String fileUrl;

    /**
     * 预留板位车辆数量
     */
    @TableField("reserved_car_num")
    private Integer reservedCarNum;

    /**
     * 中转城市
     */
    @TableField("transfer_city_code")
    private String transferCityCode;

    /**
     * 是否到达：1.是 0.否
     */
    @TableField("has_arrived")
    private Integer hasArrived;

    /**
     * 租户ID
     */
    @TableField(value = "tenant_id",fill = FieldFill.INSERT)
    private Long tenantId;
}
